package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.SysDownlogMapper;
import com.ruoyi.system.domain.SysDownlog;
import com.ruoyi.system.service.ISysDownlogService;
import com.ruoyi.common.core.text.Convert;

/**
 * 【请填写功能名称】Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-10-25
 */
@Service
public class SysDownlogServiceImpl implements ISysDownlogService 
{
    @Autowired
    private SysDownlogMapper sysDownlogMapper;

    /**
     * 查询【请填写功能名称】
     * 
     * @param logid 【请填写功能名称】主键
     * @return 【请填写功能名称】
     */
    @Override
    public SysDownlog selectSysDownlogByLogid(Long logid)
    {
        return sysDownlogMapper.selectSysDownlogByLogid(logid);
    }

    /**
     * 查询【请填写功能名称】列表
     * 
     * @param sysDownlog 【请填写功能名称】
     * @return 【请填写功能名称】
     */
    @Override
    public List<SysDownlog> selectSysDownlogList(SysDownlog sysDownlog)
    {
        return sysDownlogMapper.selectSysDownlogList(sysDownlog);
    }

    /**
     * 新增【请填写功能名称】
     * 
     * @param sysDownlog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int insertSysDownlog(SysDownlog sysDownlog)
    {
        return sysDownlogMapper.insertSysDownlog(sysDownlog);
    }

    /**
     * 修改【请填写功能名称】
     * 
     * @param sysDownlog 【请填写功能名称】
     * @return 结果
     */
    @Override
    public int updateSysDownlog(SysDownlog sysDownlog)
    {
        return sysDownlogMapper.updateSysDownlog(sysDownlog);
    }

    /**
     * 批量删除【请填写功能名称】
     * 
     * @param logids 需要删除的【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysDownlogByLogids(String logids)
    {
        return sysDownlogMapper.deleteSysDownlogByLogids(Convert.toStrArray(logids));
    }

    /**
     * 删除【请填写功能名称】信息
     * 
     * @param logid 【请填写功能名称】主键
     * @return 结果
     */
    @Override
    public int deleteSysDownlogByLogid(Long logid)
    {
        return sysDownlogMapper.deleteSysDownlogByLogid(logid);
    }
    @Override
    public  void increaseDowncount(Long logid)
    {
        sysDownlogMapper.increaseDowncount(logid);
    }
    @Override
    public List<SysDownlog> selectSysDownlogListleftjoin( Long topicid)
    {
        return sysDownlogMapper.selectSysDownlogListleftjoin(topicid);
    }
}
